import * as Cookies from 'js-cookie'

export function getCookie (key = 'token') {
  return Cookies.get(key)
}

export function clearCookies () {
  Cookies.remove('token')
}

export function setCookies (token) {
  Cookies.set('token', token)
}